<%@page contentType="text/html;charset=utf-8" %>
<%@taglib prefix="s" uri="/struts-tags" %> 
<script type="text/javascript">
function qy_pay_odata()
{
	var url      = "qy/order/p2/odata.do";
	if(document.getElementById("mobile").value=="" && document.getElementById("orderId").value=="")
	{
		alert("手机号码、订单号必须输入一个作为查询条件");
		return false;
	}
    var content  = "date1=" + document.getElementById("date1").value
                 + "&date2=" + document.getElementById("date2").value
                 + "&mobile=" + document.getElementById("mobile").value
                 + "&orderId=" + document.getElementById("orderId").value;
    var objectid = "qy_odata";
    sendXMLHttpRequest(url, content, objectid);
}

</script>
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="5"></td>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="5"></td>
      </tr>
      <tr>
        <td height="25" class="t1"><img src="images/small0.gif" width="14" height="12" /> 您现在的位置&gt;&gt;订单统计</td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="6">
        <table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_top_left.jpg" width="20" height="15" /></td>
            <td><img src="images/table_top_bg.jpg" width="770" height="15"/></td>
            <td align="right"><img src="images/table_top_right.jpg" width="20" height="15" /></td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td height="25" colspan="6" class="table_blue">　<strong><img src="images/dot.jpg" width="13" height="9">统计条件</strong></td>
      </tr>    
      <tr>
      <td height="25" class="table_w1" align="center" width="10%">开始日期：</td>
        <td class="table_w2" width="20%">&nbsp;
          <input type="text" id="date1" name="date1" dojoType="dijit.form.DateTextBox" style="width:135px;"
             value="<s:property value="date1" />" constraints="{datePattern:'yyyy-MM-dd'}" />   
        </td>
        <td class="table_w2" align="center" width="10%">结束日期：</td>
        <td class="table_w2" width="20%">&nbsp;
          <input type="text" id="date2" name="date2" dojoType="dijit.form.DateTextBox" style="width:135px;"
             value="<s:property value="date2" />" constraints="{datePattern:'yyyy-MM-dd'}" />      
        </td>
        </tr>
        <tr>
        <td class="table_w1" align="center" width="10%">手机号码：</td>
        <td class="table_w2" width="20%">&nbsp;
          <input type="text" id="mobile" name="mobile" value="<s:property value="mobile" />" />      
        </td>
        <td class="table_w2" align="center" width="10%">订单号：</td>
        <td class="table_w2" width="20%">&nbsp;
          <input type="text" id="orderId" name="orderId" value="<s:property value="orderId" />"/>      
        </td>
         </tr>
         <tr>
         	<td class="table_w1" colspan="4" align="center">
         		<button id="btn1" dojoType="dijit.form.Button" 
             onClick="qy_pay_odata();" iconClass="plusIcon">查询</button>
         	</td>
         </tr>
      <tr> 
        <td colspan="6" background="images/table_bom_bg.jpg">
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/table_bom_left.jpg" width="20" height="15"></td>
            <td></td>
            <td align="right"><img src="images/table_bom_right.jpg" width="20" height="15"></td>
          </tr>
          </table>
        </td>
      </tr>
    </table>  
  </td>
  <td width="5"></td>
  </tr>
  </table>
  <div id="qy_odata"></div> 